package main

import (
	"fmt"
	"time"
)

func main() {
	start := time.Now().UnixMilli()
	for num := 2; num <= 120000; num++ {
		var flag = true
		for i := 2; i < num; i++ {
			if num%i == 0 {
				flag = false
				break
			}
		}
		if flag {
			//fmt.Println(num, "是素数")
		}
	}
	fmt.Println(time.Now().UnixMilli() - start)
}
